<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>初始页面</title>
<base href="http://${pageContext.request.serverName }:${pageContext.request.serverPort}${pageContext.request.contextPath}/">
<script type="text/javascript" src="jquery/jquery-2.1.1.min.js"></script>
<script type="text/javascript">
	
	$(function(){
		$("#btn1").click(function(){
			
			$.ajax({
				"url":"send/array.html",
				"type":"post",
				"data":{
					"array":[2,5,8]
				},
				"dataType":"text",
				"success":function(response){
					alert(response);
				},
				"error":function(response){
					alert(response);
				}
			});
			
		});
	});
	function tp(){
		alert("Hello World!");
	}
</script>
</head>
<body>
	<h1>这是初始页面</h1>
	<a href="test/ssm.html">测试框架整合</a>
	<br>
	<button id="btn1" onclick="tp()">Send [2,5,6] One</button>
	<button id="btn2">Send [2,5,6] Two</button>
	<button id="btn3">Send [2,5,6] Three</button>
	
</body>
</html>